package com.lingxu.base.system.manage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lingxu.base.common.api.vo.Result;
import com.lingxu.base.system.manage.entity.SortInfo;
import com.lingxu.base.system.manage.entity.SysDepart;

import java.util.List;

/**
 * @Description: 部门信息
 * @Author: LingXu
 * @Date:   2021-01-04
 * @Version: V1.0.1
 */
public interface ISysDepartService extends IService<SysDepart> {

    IPage<SysDepart> queryPageList(Page<SysDepart> page, SysDepart sysDepart);

    void addOne(SysDepart sysDepart);

    Result getSysDepartTree(String pid);

    Result findDepartTreeByPidAndEarlyWarn(String pid);

    Result getSysDepartUserTree();

    boolean changeDeptsSortNew(SortInfo sortInfo);

    String getCityNameByRgion(String region);

    List<SysDepart> queryDeptsByPid(String id);

    String getDictValueByDictNameAndDictCode(String dictname, String dictcode);

    List<SysDepart> d();

    Result findDepartTreeByLogin();

    int findOne(String ename);

}
